<script>
import { h } from 'vue';
import MapCoreNormal from './map-core-normal.vue';
import MapCoreFrame from './map-core-frame.vue';
import MapCore20 from './map-core-2.0.vue';
import MapCore from './map-core.vue';
export default {
  name: 'AMap',
  props: {
    useNormal: { type: Boolean, default: true },
    useFrame: { type: Boolean, default: false },
    useV2Map: { type: Boolean, default: false },
  },
  render() {
    return this.useNormal === true
      ? h(MapCoreNormal, this.$attrs, this.$slots)
      : this.useFrame === true
      ? h(MapCoreFrame, this.$attrs, this.$slots)
      : this.useV2Map === true
      ? h(MapCore20, this.$attrs, this.$slots)
      : h(MapCore, this.$attrs, this.$slots);
  },
};
</script>

<style scoped></style>
